package com.shoe.service.impl;

import com.shoe.mapper.ACouponMapper;
import com.shoe.pojo.AdminCouponPojo;
import com.shoe.service.ACouponService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ACouponServiceImpl implements ACouponService {

    @Autowired
    ACouponMapper aCouponMapper;

    @Override
    public List<AdminCouponPojo> selectACouByConPage(Integer page, Integer limit, String couponType, Integer couponMoney, Integer couponHolding) {
        return aCouponMapper.selectACouByConPage(page, limit, couponType, couponMoney, couponHolding);
    }

    @Override
    public List<AdminCouponPojo> selectACouByConAll(String couponType, Integer couponMoney, Integer couponHolding) {
        return aCouponMapper.selectACouByConAll(couponType, couponMoney, couponHolding);
    }

    @Override
    public int updateACou(AdminCouponPojo adminCouponPojo) {
        return aCouponMapper.updateACou(adminCouponPojo);
    }

    @Override
    public int delACou(Integer couponId) {
        return aCouponMapper.delACou(couponId);
    }

    @Override
    public int addACou(AdminCouponPojo adminCouponPojo) {
        return aCouponMapper.addACou(adminCouponPojo);
    }


}
